package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品信息对象 medicine
 * 
 * @author shan
 * @date 2025-04-13
 */
public class Medicine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private Long id;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;

    /** 药品剂量 */
    @Excel(name = "药品剂量")
    private String dosage;

    /** 药品介绍 */
    @Excel(name = "药品介绍")
    private String introduction;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long quantity;

    /** 药品过期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "药品过期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;

    /** 药品储存条件 */
    @Excel(name = "药品储存条件")
    private String storageCondition;

    /** 药品批次号 */
    @Excel(name = "药品批次号")
    private String batchNumber;

    /** 药品生产厂家 */
    @Excel(name = "药品生产厂家")
    private String manufacturer;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMedicineName(String medicineName) 
    {
        this.medicineName = medicineName;
    }

    public String getMedicineName() 
    {
        return medicineName;
    }
    public void setDosage(String dosage) 
    {
        this.dosage = dosage;
    }

    public String getDosage() 
    {
        return dosage;
    }
    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setExpirationDate(Date expirationDate) 
    {
        this.expirationDate = expirationDate;
    }

    public Date getExpirationDate() 
    {
        return expirationDate;
    }
    public void setStorageCondition(String storageCondition) 
    {
        this.storageCondition = storageCondition;
    }

    public String getStorageCondition() 
    {
        return storageCondition;
    }
    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber() 
    {
        return batchNumber;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("medicineName", getMedicineName())
            .append("dosage", getDosage())
            .append("introduction", getIntroduction())
            .append("quantity", getQuantity())
            .append("expirationDate", getExpirationDate())
            .append("storageCondition", getStorageCondition())
            .append("batchNumber", getBatchNumber())
            .append("manufacturer", getManufacturer())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
